package com.iflytek.cosmo.ocr.model.dto;

import java.io.File;

import lombok.Data;

/**
 * @author <a href=mailto:ktyi@iflytek.com>伊开堂</a>
 * @date 2020/4/16 14:52
 */
@Data
public class PdfSubPageDTO {

    private String pdfId;

    private Integer index;

    private String storePath;

    private String filename;

    private Long size;

    public PdfSubPageDTO() {
    }

    public PdfSubPageDTO(String pdfId, int pageIndex, String storePath, File subPageFile) {
        this.pdfId = pdfId;
        this.index = pageIndex;
        this.storePath = storePath;
        this.filename = subPageFile.getName();
        this.size = subPageFile.length();
    }
}
